package com.bigdata.utils;

import java.util.Random;

/**
 * @className: RandomNum_Java
 * @description: TODO
 * @author 石永鑫大数据工作室
 * @date: 2021/3/12 21:46
 * @version: 1.0
 */
public class RandomNum_Java {
    /**
     * @param fromNum
     * @param toNum
     * @return
     */
    public static final  int getRandInt(int fromNum,int toNum){
        return   fromNum+ new Random().nextInt(toNum-fromNum+1);
    }
}
